﻿
using Xacml.Core.Interfaces;
using System;
using System.Collections;

namespace Xacml.Core.Runtime
{
  public class IFunctionParameterCollection : CollectionBase
  {
    public int Add(IFunctionParameter value)
    {
      return this.List.Add((object) value);
    }

    public IFunctionParameter[] ToArray()
    {
      IFunctionParameter[] functionParameterArray = new IFunctionParameter[this.Count];
      this.List.CopyTo((Array) functionParameterArray, 0);
      return functionParameterArray;
    }
  }
}
